<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>赤峰云萌科技</title>
  <script src="/static/wewhat/jssdk/jweixin-1.4.0.js"></script>
  <script>
    wx.config(<?php echo $js->config(array('openLocation'), false) ?>);
    // 验证成功后处理操作
    wx.ready(function(){
      let diz = '{$gps}';
      let arr = diz.split(',');
      let lat = parseFloat(arr[0]);
      let lon = parseFloat(arr[1]);
      wx.openLocation({
        latitude: lat, // 纬度，浮点数，范围为90 ~ -90
        longitude: lon, // 经度，浮点数，范围为180 ~ -180。
        name: '{$chehang}', // 位置名
        address: '{$address}', // 地址详情说明
        scale: 16, // 地图缩放级别,整形值,范围从1~28。默认为最大
        infoUrl: '' // 在查看位置界面底部显示的超链接,可点击跳转
      });
    });
  </script>
</head>
<body>
  
</body>
</html>